cd /opt/code/belf-base
git pull
cd /opt/code/belf-node
git pull
cd /opt/code/belf-console
git pull
cd /opt/code/belf-migrate
git pull

cd /opt/code/belf-consoleWeb
git pull
npm run build:prod
# npm run dev
rm -rf /opt/code/belf-console/src/main/resources/public
mv /opt/code/belf-consoleWeb/dist/ /opt/code/belf-console/src/main/resources/public

cd  /opt/code/belf-console
gradle bootjar

rm -rf /opt/code/package/belf-console-1.0.jar
mv /opt/code/belf-console/build/libs/belf-console-1.0.jar /opt/code/package


#java -jar /opt/code/belf-console-1.0.jar
